package cn.edu.xmu.oomall.customer.dao.openfeign;

import cn.edu.xmu.javaee.core.model.InternalReturnObject;
import cn.edu.xmu.javaee.core.util.CloneFactory;
import cn.edu.xmu.oomall.customer.mapper.openfeign.RegionMapper;
import cn.edu.xmu.oomall.customer.mapper.openfeign.Po.Region;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

/**
 * @author 谢传艳
 * @date 2024/12/19
 */
@Repository
@RequiredArgsConstructor
public class RegionDao {
    private final RegionMapper regionMapper;


    public Region findById(Long id){
        return regionMapper.findRegionById(id).getData();
    }
}
